using Microsoft.AspNetCore.Mvc;

namespace ApiDemo.Api.Controller
{
    [ApiController]
    [Route("[controller]")]
    public class BlogsController
    {
        private readonly ILogger<BlogsController> _logger;
        public BlogsController(ILogger<BlogsController> logger)
        {
            _logger = logger;
        }
        public string Index()
        {
            _logger.LogInformation("你调用了Index的函数");

            return "8888";
        }
    }
}